<template>
  <div>
    <label><slot></slot></label>
    <input type="radio" :checked="value == '男' ? true : false"
        @change="$emit('input','男')"
     :name="name" value="男"><label>男</label>
    <input type="radio" :checked="value == '女' ? true : false"
        @change="$emit('input','女')"
     :name="name" value="女"><label>女</label>
  </div>
</template>

<script>
export default {
    props:["name","value"]
}
</script>

<style>

</style>